package myStack;

/**
 * 栈接口
 * Created by Administrator on 2017/3/16.
 */
public interface IStack<E> {
    /*加入元素（进栈）*/
    E push(E item);
    /*删除元素（出栈）*/
     E pop();
    /*查看元素（读栈）*/
    E peek();
    /*长度*/
    int size();
    /*是否为空*/
    boolean isEmpty();
    /*是否已满（测试栈）*/
    boolean isFull();
}
